<?php


namespace app\common;


use think\Paginator;
use think\paginator\driver\Bootstrap as BootstrapPaginator;

class Bootstrap extends BootstrapPaginator
{
    //
    protected function getAvailablePageWrapper(string $url, string $page): string
    {
        return '<li class="page-item"><a class="page-link" href="' . htmlentities($url) . '">' . $page . '</a></li>';
    }

    //禁用状态
    protected function getDisabledTextWrapper(string $text): string
    {
        return '<li class="disabled page-item"><span class="page-link">' . $text . '</span></li>';
    }

    //选中状态
    protected function getActivePageWrapper(string $text): string
    {
        return '<li class="active page-item"><span class="page-link">' . $text . '</span></li>';
    }



}